package com.scalar.chiptrack.operations.process.cycleTime.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;
import com.scalar.chiptrack.commons.Constants;

/**
 * Created By Ganesh
 * Date  : Apr 3, 2006
 * Time  : 2:53:10 PM
 */
public class StageCycleTimeActionCommandFactory implements Constants
{
 private StageCycleTimeActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand( String action )
    {

        if ( action == null || "vendorLocations".equalsIgnoreCase( action ) )
        {
            return new StageCycleTimeLoadVendorLocationsCommand();
        }
        else if ( "partNumbers".equalsIgnoreCase( action ) )
        {
            return new StageCycleTimeLoadPartNumbersCommand();
        }
        else if ( "stages".equalsIgnoreCase( action ) )
        {
            return new StageCycleTimeLoadStagesCommand();
        }
        else if ( "save".equalsIgnoreCase( action ) )
        {
            return new StageCycleTimeSaveCycleTimeDetailsCommand();
        }

        return null;
    }

}
